package ar.edu.unq.tpi.uis.tepe3.wicket.components;


import org.apache.wicket.markup.html.form.TextField;
import ar.edu.unq.tpi.uis.tepe3.dominio.Group;
import ar.edu.unq.tpi.uis.tepe3.wicket.pages.GroupPage;

@SuppressWarnings("serial")
public class GroupForm extends AbstractFormABM<Group> {

	public GroupForm(String id, Group grupo) {
		super(id, grupo);
	}
	
	public GroupForm(Group grupo) {
		super("abmGroup", grupo);
	}

	@Override
	protected void addFields() {
		this.add(new TextField("name", String.class).setRequired(true));
	}

	@Override
	protected void redirectToListPage() {
		this.setResponsePage(GroupPage.class);
	}

}
